import ReduxCount from "../../components/ReduxCount/index";
import { connect } from "react-redux";
import {
  createIncrementAction,
  createDecrementAction,
  createIncrementAsyncAction,
} from "../../redux/count_action";
function mapStateToProps(state) {
  return {
    count: state,
  };
}
// function mapDispatchToProps(dispatch) {
//   return {
//     createIncrementAction: (data) => {
//       dispatch(createIncrementAction(data));
//     },
//     createDecrementAction: (data) => {
//       dispatch(createDecrementAction(data));
//     },
//     createIncrementAsyncAction: (data,time) => {
//       dispatch(createIncrementAsyncAction(data,time));
//     },
//   };
// }
export default connect(mapStateToProps, {
  createIncrementAction,
  createDecrementAction,
  createIncrementAsyncAction,
})(ReduxCount);

// export default connect(mapStateToProps, mapDispatchToProps)(ReduxCount);










